package arrays;

import java.util.LinkedList;
import java.util.Stack;

/**
 * @author LiangMu
 * @version \$Id: P10.java, v 0.1, 2022年12月12日 12:09 LiangMu Exp $$
 */
public class P10 {
    public static void main(String[] args) {
        Stack<Integer> integerStack = new Stack<>();
        LinkedList<Integer> linkedList = new LinkedList<>();
    }

    public static void moveZeroes(int[] nums) {
        int len = nums.length;
        int index = 0;
        for (int i = 0; i < len; ++i) {
            if (nums[i] != 0) {
                nums[index++] = nums[i];
            }
        }
        while (index < len) {
            nums[index++] = 0;
        }
    }
}
